package com.atguigu.eduservice.entity.subject;


import lombok.Data;

import java.util.ArrayList;
import java.util.List;

//一级分类  为了对应返回的数据结构，建了两个分类的实体类
@Data
public class OneSubject {

    private String id;


    private String title;


    //一级分类下有多个二级分类
    private List<TwoSubject> children = new ArrayList<>();
}
